package com.ghck.server.service;
import java.util.List;

import com.ghck.server.model.NurseStationDict;
import com.ghck.server.model.query.NurseStationDictQuery;

/**
 * 护士站  <br>
 * dict_nurse_station <br>
 * v1.0 2016-05-01
 */
 public interface NurseStationDictService {
	
	/**
 	*根据ID删除 护士站
 	*/
 	public Integer deleteNurseStationDictById(Integer id);
 	
 	/**
 	*新增 护士站
 	*/
 	public Integer batchInsertNurseStationDict(List<? extends NurseStationDict> nurseStationDicts);
 	
 	/**
 	*新增 护士站
 	*/
 	public Integer insertNurseStationDict(NurseStationDict domain);
 
 	
 	/**
 	*更新 护士站
 	*/
 	public Integer updateNurseStationDict(NurseStationDict domain);
 	
 	/**
 	*根据ID查询 护士站
 	*/
 	public NurseStationDict findNurseStationDictById(Integer id);

	/**
 	*通过query 查询 护士站
 	*/
	public List<NurseStationDict> findNurseStationDictByQuery(NurseStationDictQuery query);	
	
	/**
 	*通过query count总条数
 	*/
 	public Integer countNurseStationDictByQuery(NurseStationDictQuery query);
 	
 	/**
 	* 通过ids查询
 	*/
 	public List<NurseStationDict> findNurseStationDictByIds(List<Integer> ids);
 	
 	/**
 	*根据name查询 护士站
 	*/
	public NurseStationDict findByName(String name);
	
	/**
 	*获取所有字典 护士站
 	*/
	public List<NurseStationDict> findAll();
	
	public List<NurseStationDict> findNurseStationDictOrderByDistince(NurseStationDictQuery query);
	
	public void syncSingletonRedis(Integer nurseStationId);
	
	public void syncInRedis(boolean force);	
}	